package com.gtw.modules.api.service.impl;

import com.gtw.modules.api.service.TbDividendsService;
import com.gtw.modules.dao.TbDividendsDao;
import com.gtw.modules.entity.TbDividends;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @author wuye
 * @date 2018/2/5
 */
@Service
public class TbDividendsServiceImpl implements TbDividendsService {

    @Autowired
    private TbDividendsDao tbDividendsDao;

    @Override
    public List<TbDividends> queryList() {
        return tbDividendsDao.fountList();
    }

    @Override
    public List<TbDividends> queryByType0() {
        return tbDividendsDao.queryByType0();
    }

    @Override
    public TbDividends queryByLevel(Integer level) {
        return tbDividendsDao.queryByLevel(level);
    }

    @Override
    public List<TbDividends> queryByType1() {
        return tbDividendsDao.queryByType1();
    }

    @Override
    public TbDividends queryByLevel2(Integer level) {
        return tbDividendsDao.queryByLevel2(level);
    }
}
